// src/router/index.ts
import { createRouter, createWebHistory, type RouteRecordRaw } from 'vue-router'
import EchartsDemo from '@/pages/EchartsDemo.vue'
import Table from '@/pages/Table.vue'
import ParentComponent from '@/pages/ParentComponent.vue'

const routes: Array<RouteRecordRaw> = [
    {
        path: '/pages/EchartsDemo',
        name: 'EchartsDemo',
        component: EchartsDemo
    },
    {
        path: '/pages/Table',
        name: 'Table',
        component: Table
    },
    {
        path: '/pages/ParentComponent',
        name: 'ParentComponent',
        component: ParentComponent
    }
]

const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes
})

export default router